<?php
function check($name){
    if(isset($_REQUEST[$name])){
        return $_REQUEST[$name];
    }
    else{
        die();
    }
}
if(isset($_REQUEST['p'])){
	$page=$_REQUEST['p'];
}

if($page=='ad'){
	require_once('ad.php');
}
else if($page=='product'){
	require_once('product.php');
}
else if($page=='ca'){
	require_once('ca.php');
}
else if($page=='p2ca'){
	require_once('p2ca.php');
}
else{
	require_once('main.php');
}

?>
